package com.seecen.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.seecen.pojo.Recipes;
import com.seecen.utils.Result;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
* @author W
* @description 针对表【t_recipes(菜谱信息表)】的数据库操作Service
* @createDate 2025-07-21 12:57:25
*/
public interface RecipesService extends IService<Recipes> {

    String saveImage(MultipartFile file) throws Exception;

    Result getRecipesAll();

    Result recipesById(Integer id);

    List<Recipes> searchRecipesByKeyword(String keyword);
    
    void saveRecipeWithCategory(Recipes recipe, Integer categoryId);

}